<%
    response.setStatus(404);

    // 如果是异步请求，则直接返回信息
    if (WebUtils.isAjax(request)) {
        out.print("页面不存在.");
    }

//输出异常信息页面
    else {
%>
<%@ page import="com.tsmti.core.util.WebUtils" %>
<%@page contentType="text/html;charset=UTF-8" isErrorPage="true"%>
<%@include file="/common/taglibs.jspf"%>
<!DOCTYPE html>
<html>
<head>
    <title>404 - 页面不存在</title>
    <%@include file="/common/common.jsp" %>
</head>
<body>
<div class="container-fluid">
    <div class="page-header"><h1>页面不存在.</h1></div>
    <%--<div><a href="javascript:" onclick="history.go(-1);" class="btn">返回上一页</a></div>--%>
    <script>try{top.$.jBox.closeTip();}catch(e){}</script>
</div>
</body>
</html>
<%
        out.print("<!--"+request.getAttribute("javax.servlet.forward.request_uri")+"-->");
    } out = pageContext.pushBody();
%>